<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增实际收款')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-actual-add">
            <div class="form-group">
                <input name="contractId" class="form-control" type="hidden" th:value="${alpStageDetail}?${alpStageDetail.contractId}:''">
                <input name="stageId" class="form-control" type="hidden" th:value="${alpStageDetail}?${alpStageDetail.stageId}:''">
                <input name="delFlag" class="form-control" type="hidden" th:value=0>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合同编号：</label>
                <div class="col-sm-8">
                    <input name="contractNo" class="form-control" type="text" readonly="true" th:value="${alpStageDetail}?${alpStageDetail.contractNo}:''">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">合同名称：</label>
                <div class="col-sm-8">
                    <input name="contractName" class="form-control" type="text" readonly="true" th:value="${alpStageDetail}?${alpStageDetail.contractName}:''">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">阶段名称：</label>
                <div class="col-sm-8">
                    <input name="stageName" class="form-control" type="text" readonly="true" th:value="${alpStageDetail}?${alpStageDetail.stageName}:''">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">实际收款金额：</label>
                <div class="col-sm-8">
                    <input name="actualMoney" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实际收款时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="actualTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">修改人：</label>
                <div class="col-sm-8">
                    <input name="updatedBy" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">修改时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="updatedTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/actual"
        $("#form-actual-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-actual-add').serialize());
            }
        }

        $("input[name='actualTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='updatedTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>